// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import MuseUI from 'muse-ui'
import 'muse-ui/dist/muse-ui.css';
import $ from 'jquery'
window.$ = $
import Vant from 'vant';
import 'vant/lib/index.css';

Vue.use(Vant);

import component from './components/index'

import Message from 'muse-ui-message'
import 'muse-ui-message/dist/muse-ui-message';
Vue.use(Message);

import 'muse-ui-loading/dist/muse-ui-loading';
import Loading from 'muse-ui-loading';
Vue.use(Loading);

import '@/css/common.css'
import '@/js/config.js'

import common from './js/app';
import api from './http/index'
import store from './store'
import VueWechatTitle from 'vue-wechat-title'
Vue.use(VueWechatTitle)

Vue.prototype.common = common;

import './js/getOpenid'
import './js/app-supply'
import './http/api'

Vue.config.productionTip = false

import componentsSys from './components/components-sys/index'
Vue.use(componentsSys);

Vue.prototype.toPath = function (path) {
    this.$router.push(path);
};

Vue.use(api);
Vue.use(MuseUI);
Vue.use(component)

/* eslint-disable no-new */
new Vue({
    el: '#app',
    router,
    store,
    Vant,
    Vue,
    $,
    components: {
        App
    },
    template: '<App/>',
    mounted() {}
})
